﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;

namespace Fayshine.VA.Views
{
    public partial class Test2 : Page
    {
        public Test2()
        {
            InitializeComponent();
            this.Loaded += new RoutedEventHandler(Test2_Loaded);
        }

        void Test2_Loaded(object sender, RoutedEventArgs e)
        {

            List<Customer> cust = new List<Customer>();
            cust.Add(new Customer() { Time = "1号门", Number = 30 });
            cust.Add(new Customer() { Time = "2号门", Number = 55 });
            cust.Add(new Customer() { Time = "3号门", Number = 120 });
            cust.Add(new Customer() { Time = "4号门", Number = 45 });
            cust.Add(new Customer() { Time = "5号门", Number = 33 });
            cust.Add(new Customer() { Time = "6号门", Number = 23 });

            List<Customer> cust2 = new List<Customer>();
            cust2.Add(new Customer() { Time = "1号门", Number = 43 });
            cust2.Add(new Customer() { Time = "2号门", Number = 79 });
            cust2.Add(new Customer() { Time = "3号门", Number = 100 });
            cust2.Add(new Customer() { Time = "4号门", Number = 44 });
            cust2.Add(new Customer() { Time = "5号门", Number = 44 });
            cust2.Add(new Customer() { Time = "6号门", Number = 67 });



            A a = new A();
            a.AA = cust;
            a.BB = cust2;

            this.DataContext = a;
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }

    }
}
